package cn.lhjl.day04.redpacket;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        Master master = new Master("王思聪", 100);
        Member one = new Member("张靓颖", 0);
        Member two = new Member("迪丽热巴", 0);
        Member three = new Member("古力娜扎", 0);
        System.out.println("name:" + master.getName() + " money:" + master.getMoney());
        System.out.println("name:" + one.getName() + " money:" + one.getMoney());
        System.out.println("name:" + two.getName() + " money:" + one.getMoney());
        System.out.println("name:" + three.getName() + " money:" + one.getMoney());
        ArrayList<Integer> redPacket = master.send(100, 3);
        System.out.println(redPacket);
        System.out.println("name:" + master.getName() + " money:" + master.getMoney());
        one.get(redPacket);
        two.get(redPacket);
        three.get(redPacket);
        System.out.println("name:" + one.getName() + " money:" + one.getMoney());
        System.out.println("name:" + two.getName() + " money:" + two.getMoney());
        System.out.println("name:" + three.getName() + " money:" + three.getMoney());
    }
}
